module.exports = () =>
  async function resultFormat(ctx, next) {
    ctx.body = {};
    await next();
    if (ctx.body.retCode === undefined) {
      ctx.body.retCode = 0;
    }
  };
